package com.uit.httt04.duongvanlam.facedetection.classes;

import android.annotation.SuppressLint;

@SuppressLint("DefaultLocale")
public class ImageAndFace
{
	// lam_1.jpg, lam_2.jpg, lam_3.jpg, thuy_1.jpg, thuy_2.jpg
	// ...
	public static String getPersonNameByImageName(String ImageName)
	{
		String[] splitImageName = ImageName.split("_");
		if (splitImageName != null && splitImageName.length == 2)
		{
			return splitImageName[0].toLowerCase();
		}

		return null;
	}
}
